Fix annotation for GtkDropTarget.get_gtypes()
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 3 Mar 2020 13:17:31 +0000 (13:17 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 3 Mar 2020 13:17:31 +0000 (13:17 +0000)
The argument name must match in the documentation, and the `allow-none`
annotation is deprecated, and should be replaced by `optional` in this
case.

gtk/gtkdroptarget.c

index 89e91a9a9a402b75522b9d0cec6d895995c73351..b93e43c46231a8da23bc8ead1b0240e5c2704417 100644 (file)
@@ -864,7 +864,7 @@ gtk_drop_target_set_gtypes (GtkDropTarget *self,
 /**
  * gtk_drop_target_get_gtypes:
  * @self: a #GtkDropTarget
- * @n_gtypes: (out) (allow-none): optional pointer to take the
+ * @n_types: (out) (optional): optional pointer to take the
  *     number of #GTypes contained in the return value
  *
  * Gets the list of supported #GTypes for @self. If no type have been set,